package design.simdi.code.final_paper.core.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * @author Marius Dumitriu - (May 30, 2010 - 10:42:12 PM)
 * 
 */
@Entity
@Table(name = "students")
@AttributeOverrides( { @AttributeOverride(name = "id", column = @Column(name = "Student_Id")) })
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Student extends ApplicationEntity {

	private static final long serialVersionUID = 1L;

	private String numarMatricol;
	private Integer an;
	private String grupa;
	private String semian;
	private String prenumeTata;

	/**
	 * @return the numarMatricol
	 */
	@Column(length = 250, nullable = false, name = "Nr_Matricol")
	public String getNumarMatricol() {
		return numarMatricol;
	}

	/**
	 * @param numarMatricol
	 *            the numarMatricol to set
	 */
	public void setNumarMatricol(String numarMatricol) {
		this.numarMatricol = numarMatricol;
	}

	/**
	 * @return the an
	 */
	@Column(nullable = true, name = "An")
	public Integer getAn() {
		return an;
	}

	/**
	 * @param an
	 *            the an to set
	 */
	public void setAn(Integer an) {
		this.an = an;
	}

	@Column(nullable = true, name = "Grupa")
	public String getGrupa() {
		return grupa;
	}

	public void setGrupa(String grupa) {
		this.grupa = grupa;
	}

	@Column(nullable = true, name = "Semian")
	public String getSemian() {
		return semian;
	}

	public void setSemian(String semian) {
		this.semian = semian;
	}

	@Column(nullable = true, name = "Prenume_Tata")
	public String getPrenumeTata() {
		return prenumeTata;
	}

	public void setPrenumeTata(String prenumeTata) {
		this.prenumeTata = prenumeTata;
	}
}
